package cn.good.biz.service;

import cn.good.pojo.Desk;
import cn.good.pojo.ServiceType;
import cn.good.service.DictionariesService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GDDictionariesServiceImpl implements GDDictionariesService{

    @Reference
    private DictionariesService dictionariesService;

    /**
     * 查询科室列表字典
     * @param superiorId
     * @return
     */
    @Override
    public List<Desk> searchDeskList(Integer superiorId) {

        return dictionariesService.searchDeskListBySuperiorId(superiorId);
    }

    /**
     * 查询服务列表
     * @return
     */
    @Override
    public List<ServiceType> searchServiceList() {
        return dictionariesService.searchServiceTypeListBySuperiorId();
    }
}
